#!/bin/bash
kill -KILL `ps aux | grep "java -jar" | grep "DhtDriver.jar" | grep -v "grep" | awk \{print\ \$\2\}`
#kill -KILL `ps aux | grep "java -jar DataServer.jar" | grep -v "grep" | awk \{print\ \$\2\}`
for slave in `cat $DHTFS_HOME/bin/slaves`
do
        ssh $slave 'for pid in `ps aux | grep "java -jar" | grep "DhtDriver.jar" | grep -v "grep" | awk \{print\ \$\2\}`; do kill -KILL $pid; done'
done